package com.example.demo.util;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.PositiveOrZero;

public class Comment {
    @NotBlank(message = "评论内容不能为空")
    String content;
    @NotBlank(message = "评论时间不能为空")
    String time;
    @PositiveOrZero(message = "点赞数不能为负数")
    int like;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public int getLike() {
        return like;
    }

    public void setLike(int like) {
        this.like = like;
    }
}